import javax.swing.JOptionPane;

public class examInfo {
    public static void main(String[] args) {
        String examCard = JOptionPane.showInputDialog("请输入准考证号");
        String examPlace = examCard.substring(0,2);
        String examRoom = examCard.substring(2,4);
        String examNum = examCard.substring(4,8);
        String examType = "";
        switch (examCard.charAt(8))
        {
            case '1' :
                examType = "A类";
                        break;
            case '2' :
                examType = "B类";
                break;
            case '3' :
                examType = "C类";
                break;
        }
        System.out.println("考场号:" + examPlace);
        System.out.println("考室:" + examRoom);
        System.out.println("考生序号:" + examNum);
        System.out.println("考试类型:" + examType);

        String newExamnum = "10531" + examCard;
        System.out.println("插入后的准考证号是:");
    }
}
